import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '@/views/login' // /index.vue是可以省略的
Vue.use(VueRouter)

const routes = [
  // 用户登陆
  {
    path: '/login',
    name: 'Login',
    component: Login
  }
]

const router = new VueRouter({
  routes
})

export default router
